from flask_migrate import MigrateCommand, Migrate

from info import create_app, db,models

from  flask_script import  Manager
app = create_app("develop_Config")
manager=Manager(app)
#使用Migrate关联app,db
Migrate(app,db)

#给manager添加一条操作命令
manager.add_command("db",MigrateCommand)

if __name__ == '__main__':
    manager.run()
